package BehavioralMode.visitor.materials;

import java.util.LinkedList;
import java.util.List;

/**
 * 材料集合类
 * */
public class MaterialsList {

    List<Materials> materialsList = new LinkedList<>();

    public void addEle(Materials materials){
         materialsList.add(materials);
    }

    public void acceptVistor(Company company){
          for (Materials materials: materialsList){
              materials.acceptVistor(company);
          }
    }
}
